package com.elm.elmapp.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

public class Orders {
    /**
     * 订单id
     */
    @Id
    private String id;

    /**
     * 收件id
     */
    @Column(name = "address_id")
    private String addressId;

    /**
     * 订单总金额
     */
    @Column(name = "order_amount")
    private BigDecimal orderAmount;

    /**
     * 下单时间
     */
    private Date time;

    /**
     * 支付状态 , 默认0为未支付
     */
    @Column(name = "pay_status")
    private Byte payStatus;

    /**
     * 获取订单id
     *
     * @return id - 订单id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置订单id
     *
     * @param id 订单id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取收件id
     *
     * @return address_id - 收件id
     */
    public String getAddressId() {
        return addressId;
    }

    /**
     * 设置收件id
     *
     * @param addressId 收件id
     */
    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    /**
     * 获取订单总金额
     *
     * @return order_amount - 订单总金额
     */
    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    /**
     * 设置订单总金额
     *
     * @param orderAmount 订单总金额
     */
    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    /**
     * 获取下单时间
     *
     * @return time - 下单时间
     */
    public Date getTime() {
        return time;
    }

    /**
     * 设置下单时间
     *
     * @param time 下单时间
     */
    public void setTime(Date time) {
        this.time = time;
    }

    /**
     * 获取支付状态 , 默认0为未支付
     *
     * @return pay_status - 支付状态 , 默认0为未支付
     */
    public Byte getPayStatus() {
        return payStatus;
    }

    /**
     * 设置支付状态 , 默认0为未支付
     *
     * @param payStatus 支付状态 , 默认0为未支付
     */
    public void setPayStatus(Byte payStatus) {
        this.payStatus = payStatus;
    }
}